﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Model
{
    public class PlatformModel : DeviceBaseModel
    {
        public PlatformModel()
            : base()
        {
            _pfDevice = new PlatformDevice();
        }

        public PlatformModel(PlatformDevice pf, Device device)
            : base(device)
        {
            _pfDevice = pf;
        }

        PlatformDevice _pfDevice;

        public PlatformDevice Platform
        {
            get
            {
                return _pfDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _pfDevice.DeviceID;
            }
            set
            {
                _pfDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }
    }
}
